<?php
namespace app\admin\controller;

use think\Controller;
use think\Session;
use think\Db;

class Attention extends Controller
{
    public function index () {
        $this->checkLogin();
        $result = Db::table('attention')
        ->alias('a')
        ->join('master m','a.master_id = m.master_id')
        ->join('users u','a.user_id = u.user_id')
        ->select();
        // dump($result);
        $this->assign('list', $result);
        return $this->fetch('list');
    }
}